﻿using System.Windows;
using System.Windows.Controls;

namespace TetriBricks
{
    public class Block : Control
    {
        // Using a DependencyProperty as the backing store for Row.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty RowProperty =
            DependencyProperty.Register("Row", typeof (int), typeof (Block), new PropertyMetadata(0));

        // Using a DependencyProperty as the backing store for Row.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty ColProperty =
            DependencyProperty.Register("Col", typeof (int), typeof (Block), new PropertyMetadata(0));

        public int Row
        {
            get { return (int) GetValue(RowProperty); }
            set { SetValue(RowProperty, value); }
        }

        public int Col
        {
            get { return (int) GetValue(ColProperty); }
            set { SetValue(ColProperty, value); }
        }
    }
}